package com.blueocean_health.care.management.domain.dto;

import org.springframework.util.StringUtils;

import com.blueocean_health.care.management.common.excel.ExcelResources;

/**
 * 科室管理Dto 2018年1月6日11:22:15
 * @author wuyanli
 *
 */
public class DeptManagerDto {
    /**
     * 楼号id
     */
    private String buildingId;

    /**
     * 楼号名称
     */
    private String buildingName;
    /**
     * 楼层Id
     */
    private String floorId;

    /**
     * 楼层名称
     */
    private String floorName;
    /**
     * 科室id
     */
    private String deptId;

    /**
     * 科室名称
     */
    private String deptName;

    /**
     * 医院Id
     */
    private String hospitalId;
    
    /**
     * 护士长
     */
    private String nurseManager;
    
    private String standardDept[];
    /**
     * 是否关联资费信息
     */
    private boolean hasExpenses = false;
    
	public String getBuildingId() {
		return buildingId;
	}

	public void setBuildingId(String buildingId) {
		this.buildingId = buildingId;
	}
	@ExcelResources(title = "楼号", order = 2)
	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	public String getFloorId() {
		return floorId;
	}

	public void setFloorId(String floorId) {
		this.floorId = floorId;
	}
	
	public boolean isHasExpenses() {
		return hasExpenses;
	}

	public void setHasExpenses(boolean hasExpenses) {
		this.hasExpenses = hasExpenses;
	}

	@ExcelResources(title = "楼层", order = 3)
	public String getFloorName() {
		return floorName;
	}

	public void setFloorName(String floorName) {
		this.floorName = floorName;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	@ExcelResources(title = "科室", order = 1)
	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(String hospitalId) {
		this.hospitalId = hospitalId;
	}
	@ExcelResources(title = "护士长", order = 4)
	public String getNurseManager() {
		if(StringUtils.isEmpty(nurseManager)){
			return null;
		}
		return nurseManager;
	}

	public void setNurseManager(String nurseManager) {
		this.nurseManager = nurseManager;
	}

	
	public String[] getStandardDept() {
		if(standardDept == null){
			return new String[0];
		}
		return standardDept;
	}

	public void setStandardDept(String[] standardDept) {
		this.standardDept = standardDept;
	}

	@Override
	public String toString() {
		return "DeptManagerDto [buildingId=" + buildingId + ", buildingName=" + buildingName + ", floorId=" + floorId
				+ ", floorName=" + floorName + ", deptId=" + deptId + ", deptName=" + deptName + ", hospitalId="
				+ hospitalId + ", nurseManager=" + nurseManager + ", standardDept=" + standardDept + "]";
	}

}